/*
 * @Description:
 * @Date: 2023-03-24 15:54:54
 * @LastEditors: czp
 * @LastEditTime: 2023-03-24 15:55:53
 */
import { RouteRecordName } from "vue-router";

export interface RouteRecord {
	name?: RouteRecordName;
	path?: string;
	meta?: RouteMetaProp;
	children?: RouteRecord[];
	hidden?: boolean;
	alwaysShow?: boolean;
	redirect?: string; // 重定向
	component?: string | (() => Promise<any>) | never;
}

export interface RouteMetaProp {
	icon?: string;
	title?: string;
	link?: string;
	alive?: boolean;
}
